LINK

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

link - link to a file  

SYNOPSIS

#include <support.h>

int link(const char *old, const char *new);
 

DESCRIPTION

old points to a path name naming an existing file. new points to a path name naming the new directory entry to be created. link creates a new hardlink (directory entry) for the existing file.  

RETURN VALUES


 0 on success -1 on failure; errno is set to indicate the error.  

SEE ALSO

readlink(3), symlink(3), unlink(3), Flink(2)  

NOTE

link will only fuction properly if MiNT 0.9 or later is active and the file system supports hardlinks. MS-DOS (TOS) file systems do not support hardlinks.
 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
NOTE

This document was created by man2html, using the manual pages.
Time: 11:14:43 GMT, June 22, 2025